//
//  DXWYuLeCell.m
//  pandaTV
//
//  Created by 淡馨慰 on 16/9/4.
//  Copyright © 2016年 淡馨慰. All rights reserved.
//

#import "DXWYuLeCell.h"
#import <SDWebImage/UIImageView+WebCache.h>
#import "DXWYuLeCellItem.h"

@interface DXWYuLeCell ()
/** 房间图片 */
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
/** 介绍标签 */
@property (weak, nonatomic) IBOutlet UILabel *intro_Label;
/** 在线观看人数 */
@property (weak, nonatomic) IBOutlet UILabel *personNum_Label;
/** 主播名称 */
@property (weak, nonatomic) IBOutlet UILabel *hostName_Label;

@end

@implementation DXWYuLeCell

+ (instancetype)yuleCell
{
    return [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil]lastObject];
}

- (void)setCellItem:(DXWYuLeCellItem *)cellItem
{
    _cellItem = cellItem;
    [_imageView sd_setImageWithURL:[NSURL URLWithString:cellItem.pictures[@"img"]]];
    _intro_Label.text = cellItem.name;
    _intro_Label.font = [UIFont systemFontOfSize:12];
    _personNum_Label.text = cellItem.person_num;
    
    _hostName_Label.text = cellItem.userinfo[@"nickName"];
    
}

@end
